package com.elong.businesstravel.base.utils;

import com.android.support.jhf.utils.ConfigManager;

import android.content.Context;

/**
 * 用来记录操作的类
 * @author lenovo
 *
 */
public class SettingsUtils {

	/**是否展示满房，1全部酒店，0不展示满房*/
	public static final String HOTEL_FULL = "hotel_full";
	
	/**
	 * 保存满房操作
	 * @param context
	 * @param isFullString
	 */
	public static void setHotelFull(Context context, int isFull) {
		ConfigManager.getInstance(context).putInt(HOTEL_FULL, isFull);
	}
	
	/**
	 * 获取满房操作；，1全部酒店，0不展示满房
	 * @param context
	 * @return
	 */
	public static int getHotelFull(Context context){
		return ConfigManager.getInstance(context).loadInt(HOTEL_FULL, -1);
	}
}
